From debian:bullseye
LABEL   Author="ShanYou <shanyou81@163.com>"

#使用中国镜像
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \
&& sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list

# 修改时区
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install tzdata && rm -f /etc/localtime \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc make libncurses5-dev openssl \
libssl-dev 
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y liblz4-tool pkg-config bc libc6-dev bison flex libelf-dev rpm 
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential
RUN DEBIAN_FRONTEND=noninteractive apt-get install  kmod cpio rsync

CMD exec /bin/bash -c "echo 'welcome to use debian bullseye in docker' && trap : TERM INT; sleep infinity & wait"
